package com.ruoyi.mall.app.repository;

import com.ruoyi.mall.common.domain.DtsCategoryEs;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DtsCategoryEsRepository extends ElasticsearchRepository<DtsCategoryEs, String> {
    // 查询商品信息
//    @Query("{ \"terms\": { \"_id\": \"?0\" }}")
    List<DtsCategoryEs> findByIdIn(Iterable<String> ids);

    List<DtsCategoryEs> findAll();


}
